<template>
  <div id="service">
    <tab :tabs="tabs" :perm="perm" :map="map" v-if="$store.getters.menu!='newmenu'"/>
    <div class="router-view-3">
      <router-view />
    </div>
  </div>
</template>

<script>
  export default {
    data(){
      return {
        tabs: this.$t('service.tabs'),
        map: this.$store.state.info.perm_map[4],
      }
    },
    computed: {
      // 连写语法为 键值对函数声明
      perm() {
        return this.$store.state.info.perm.srv
      },
      // perm: () => this.$store.state.info.perm.srv,
    },
    methods: {

    },
    created(){
      this.$emit('changeIdx', 4)
    }
  }
</script>

<style lang="scss" scoped>

</style>
